import { createRouter, createWebHashHistory } from 'vue-router'
import Layout from '../layout/index.vue' //缺少2个.vue文件
import Login from '../views/Login/index-view.vue'

const router = createRouter({
  history: createWebHashHistory(), //createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/layout',
    },
    {
      path: '/layout',
      name: 'layout',
      component: Layout,
    },
    {
      path: '/login',
      name: 'login',
      component: Login,
    },
  ],
})

export default router
